﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace PicasaWrapper
{
	/// <summary>
	/// Interaction logic for ErrorDialog.xaml
	/// </summary>
	public partial class ErrorDialog : Window
	{
		public ErrorDialog()
		{
			InitializeComponent();

			btnOK.Click += btnOK_Click;
		}

		void btnOK_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
			this.Close();
		}

		public string ErrorMessage
		{
			get
			{
				return txtMessage.Text;
			}
			set
			{
				txtMessage.Text = value;
			}
		}
	}
}
